Builder

class Builder @JvmOverloads constructor(attributeId: Identifier, lockAttribute: Boolean = false)

Deprecated

Scheduled for removal in 0.6.0

A ValidatedEntityAttribute builder

Author

fzzyhmstrs

Since

0.3.1

Parameters

attributeId

Identifier - the registry ID for the default EntityAttribute. This can't be the attribute itself, as it will be serialized, potentially before the registry is built.

lockAttribute

Boolean - If true, the user won't be able to change the stored Attribute value

Constructors

Link copied to clipboard
constructor(attributeId: String, lockAttribute: Boolean = false)
constructor(attributeId: Identifier, lockAttribute: Boolean = false)

Functions

Link copied to clipboard
fun amount(amount: Double, min: Double = -Double.MAX_VALUE, max: Double = Double.MAX_VALUE): ValidatedEntityAttribute.Builder
Link copied to clipboard
Link copied to clipboard

Define a name for the attribute modifier

Link copied to clipboard
fun operation(operation: EntityAttributeModifier.Operation, lockOperation: Boolean = false): ValidatedEntityAttribute.Builder
Link copied to clipboard

Define a UUID for the attribute modifier

The unique identifier for this attribute instance